Video and graphics system with square graphics pixels

ABSTRACT

A video and graphics system provides square graphics pixels to blend images having 640×480 pixels, such as graphics images provided by some set top boxes and intended to be displayed at a 12.27 MHz display sample rate, with images having 704×480 pixels, such as ITU-R 601 compliant images such as NTSC SDTV images, having oblong pixels and displayed at a 13.5 MHz display sample rate. A sample rate converter including a multi-phase-multi-tap filter is used to generate square pixels. The multi-phase-multi-tap filter provides a good balance of sharpness, smoothness, anti-aliasing and reduced ringing. The multi-phase-multi-tap filter can also be used to convert images having 320×480 pixels to images having 704×480 pixels. The multi-tap filter can be used for scan rate conversion of graphics or video images for HDTV or SDTV applications.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.09/799,252, filed Mar. 5, 2001, now U.S. Pat. No. 7,057,627.

The present application contains subject matter related to the subjectmatter disclosed in U.S. patent application Ser. No. 09/641,374 entitled“Video, Audio and Graphics Decode, Composite and Display System” filedAug. 18, 2000, now issued as U.S. Pat. No. 6,853,385 on Feb. 8, 2005,the contents of which are hereby incorporated by reference in full.

FIELD OF THE INVENTION

The present invention relates generally to integrated circuits andsystems, and more particularly to a system for processing and displayingvideo and graphics.

BACKGROUND OF THE INVENTION

Video images are often provided as ITU-R 601 compliant images (e.g.,NTSC with 704×480 pixels) that have 13.5 MHz display sample rate. Thesevideo images typically have oblong pixels. On the other hand, graphicsimages are often provided with square pixels with a sample rate of 12.27MHz. For example, a typical graphics image may have 640×480 pixels. In avideo and graphics system, video and graphics are often overlaid on topof each other to provide a blended image. It is desirable to combine thevideo and graphics in such a way that both retain their individual andcorrect pixel aspect ratios. It is also desirable to perform thisfunction without modifying the video samples or changing the sample rateof the video and graphics is often difficult due to their differentimage sizes and pixel aspect ratios.

Prior attempts to implement similar functions have suffered fromproblems. For example, some previous designs produced visual artifactsin the resulting displayed graphics, such as aliasing, blurring, orringing. Others, in addition to these problems, have slow performancedue to their additional accesses to shared memory.

Therefore, it is desirable to provide a method and apparatus foroverlaying video and graphics to generate a blended image withoutappreciable image quality degradation, in such a way that both retaintheir individual and correct pixel aspect ratios without modifying thevideo samples or changing the video sample rate.

SUMMARY OF THE INVENTION

In one embodiment of the present invention, a video and graphics systemis provided. The video and graphics system has first and second inputs.The first input is used to receive a graphics image. The graphics imagecontains graphics pixels, which have square pixel aspect ratio. Thesecond input is used to receive a video image containing video pixels,which have non-square pixel aspect ratio. The video image has a largernumber of pixels per scan line than the graphics image. The video andgraphics system includes a sample rate converter for converting samplerate of the graphics image so that the number of graphics pixels perscan line of the graphics image becomes greater than or equal to thenumber of video pixels per scan line of the video image. Further, thevideo and graphics system includes a video compositor for blending thegraphics image with the video image. The graphics image is scaledhorizontally so that the graphics image can be overlaid on the fullwidth of the video image, and the square pixel aspect ratio of thegraphics pixels is maintained.

In another embodiment of the present invention, a method of blending agraphics image with a video image is provided. The graphics imagecontaining graphics pixels having square pixel aspect ratio is received.The video image containing video pixels having non-square pixel aspectratio is also received. The video image has a larger number of pixelsper scan line than the graphics image. A sample rate of the graphicsimage is converted so that the number of graphics pixels per scan lineof the graphics image becomes greater than or equal to the number ofvideo pixels per scan line of the video image. Then, the graphics imageis blended with the video image. The graphics image is scaledhorizontally so that the graphics image can be overlaid on the fullwidth of the video image, and the square pixel aspect ratio of thegraphics pixels is maintained.

In yet another embodiment of the present invention, a video and graphicssystem is provided. The video and graphics system has first input meansfor receiving a graphics image containing graphics pixels, which havesquare pixel aspect ratio. The video and graphics system also has secondinput means for receiving a video image comprising video pixels, whichhave non-square pixel aspect ratio. The video image has a larger numberof pixels per scan line than the graphics image. The video and graphicssystem includes means for converting sample rate of the graphics imageso that the number of graphics pixels per scan line of the graphicsimage becomes greater than or equal to the number of video pixels perscan line of the video image. Further, the video and graphics systemincludes means for blending the graphics image with the video image. Thegraphics image is scaled horizontally so that the graphics image can beoverlaid on the full width of the video image, and the square pixelaspect ratio of the graphics pixels is maintained.

BRIEF DESCRIPTION OF THE DRAWINGS

These and other aspects of the invention may be understood by referenceto the following detailed description, taken in conjunction with theaccompanying drawings, which are briefly described below.

FIG. 1 is a block diagram of an integrated circuit chip, which embodiesthe video and graphics system of the present invention, coupled to theCPU and other devices;

FIG. 2 is a block diagram of a video and graphics system in anembodiment according to the present invention;

FIG. 3 is a block diagram of a video-graphics display and scale enginein an embodiment according to the present invention; and

FIG. 4 is a frequency response diagram of a 11-phase, 5-tap filter forluma processing to generate square graphics pixels in an embodimentaccording to the present invention.

DETAILED DESCRIPTION

One embodiment of the present invention is a video and graphics systemwith square graphics pixels. In this embodiment, the display sample rateof graphics images preferably is converted to match the display samplerate of video images so as to facilitate blending the two, whilemaintaining a square pixel aspect ratio. Displayed graphics images arescaled along the horizontal axis. For example, a 640×480 graphics imageis scaled to match the 704×480 image size of NTSC-compatible video, suchthat both the video and graphics fill the same area on the display. Inother embodiments, the display sample rate of the video images may beconverted to match the display sample rate of the graphics images. Instill other embodiments, the display sample rate of the both the videoimages and the graphics images may be converted.

In FIG. 1, an integrated circuit 100 includes one embodiment of thevideo and graphics system according to the present invention. In otherembodiments, the system may be implemented using two or more separateintegrated circuit chips. The integrated circuit 100 may include inputs112 for receiving multiple compressed data streams. The compressed datastreams may include but are not limited to MPEG-2 Transport streams. Theintegrated circuit 100 may also include an analog input 116 forreceiving analog video signals 114. The analog video signals may includebut are not limited to NTSC, PAL, Y/C (S-video), SECAM, RGB, YPrPb,YCrCb, or other analog video signals in SDTV or HDTV format that includevideo and/or graphics information. The color components of the graphicsand video signals may be in any of a number of formats, including butnot limited to, YUV, YCrCb, YPrPb, HLS, and HSV. There may be multipledefinitions of each of these terms. Exemplary definitions of some ofthese signal formats may be found in ITU-R rec. Bt-601 and ITU-R rec.Bt-709.

The integrated circuit 100 may also include an output 128 for providinga video output signal 126, and an output 132 for providing an audiooutput signal 130. The video output signal 126 may include digital oranalog video signals. For example, the digital video signals may includevideo signals to be displayed on Digital Visual Interface(DVI)-compliant monitors. The digital video signals may also be providedto an on-chip or off-chip device that may encrypt the output.

The integrated circuit 100 may also include a bus 120 for communicatingwith PCI devices 118 and a bus 124 to interface with I/O devices 122such as read-only memory (ROM), flash memory and/or other devices. Theintegrated circuit may further include a bus 104 for transferring datato and from memory 102 and a bus 108 for connecting to a CPU 106.Graphics data for display preferably is produced by any suitablegraphics library software, such as Direct Draw marketed by MicrosoftCorporation, and is read from the CPU 106 into the memory 102. Thememory 102 preferably is a unified memory that is shared by the system,the CPU 106 and other peripheral components. The CPU preferably uses theunified memory for its code and data while the video and graphics systempreferably performs all graphics, video, audio and display functionsusing the same unified memory.

FIG. 2 is a block diagram of one embodiment of the video and graphicssystem implemented in the integrated circuit 100. The video and graphicssystem preferably includes a data transport 200, a video transport 202,a video RISC 204, two row RISCs 206, 208, an audio decode processor(ADP) 214, a graphics accelerator 224, a DMA engine 226, a memorycontroller 234, an analog video decoder (VDEC) with a 10-bitanalog-to-digital converter (ADC) 236, a video-graphics display andscale engine 238, a set of video DACs 240, a PCI bridge 242, an I/O busbridge with DMA 244, a CPU interface block 246, a PCM audio 250, anaudio DAC 252, and a video encoder (VEC) 254.

The data transport 200, the video transport 202, the video RISC 204, therow RISCs 206, 208, and the ADP 214 preferably perform transport anddecode functions of the video and graphics system, which may includeMPEG-2 Transport and video decoding.

The video and graphics system preferably includes multiple transportprocessors. For example, in one embodiment, the video and graphicssystem may include three transport processors. The compressed datastreams, which may include in-band and out-of-band MPEG Transportstreams IB 1 (in-band 1), IB 2 (in-band 2) and OOB, preferably areprovided to the data transport 200 and the video transport 202.

The data transport 200 preferably performs PID and section filtering ofthe compressed data streams. The data transport preferably providesmessage data obtained through section filtering to the memory controller234 for storage in the external memory, e.g., SDRAM. The data transportpreferably also performs descrambling of encrypted transport streams.The encrypted transport streams may have been encrypted using, e.g.,DES, DVD or other encryption method. In one embodiment of the presentinvention, the data transport provides the descrambled compressed datastreams to the video transport 202 and the audio decode processor (ADP)214.

The video transport preferably extracts bit stream for video, which mayinclude MPEG-2 video. The video transport 202 preferably extractscompressed MPEG video data by removing transport stream (TS) headers andpacketized elementary stream (PES) headers from the compressed datastreams. Then the video transport preferably provides the compressedvideo data, which may include MPEG video data, for processing in thevideo RISC 204. The compressed data streams may also include other typesof packetized data streams such as DIRECTV transport streams. DIRECTV isa trademark of DIRECTV, Inc.

The video RISC 204 and the row RISCs 206, 208 make up a digital videodecoder, which may be an MPEG-2 video decoder. The digital video decoderpreferably decodes the compressed video data and provides it to thememory controller 234 to be stored temporarily in an external memory,e.g., SDRAM. For the case of MPEG-2 video data, complex video decodeprocess of MPEG video preferably is partitioned into concurrentlyoperable multiple decode functionality. The digital video decoderpreferably decodes multiple rows of the compressed MPEG-2 video dataconcurrently.

The video RISC 204 preferably parses and processes layers of compressedMPEG-2 video data above the SLICE layer, i.e., SEQUENCE, group ofpictures (GOP), EXTENSION and PICTURE layers. The two row RISCs 206, 208preferably are used for SLICE layer, macroblock layer and block layerdecoding and processing. Row decode paths associated with the row RISCspreferably are used for full speed processing of time critical functionsat the macroblock and block layers. Processors used in this embodimentare RISC processors. Other types of processors may be used in otherembodiments.

The digital video decoder may scale frames by half when saving them toframe buffers. Thus, savings to memory size and bandwidth may resultwhen the reference frames are saved for reconstruction of P-frames andB-frames. The frames preferably are not scaled vertically duringreconstruction. The frame buffers preferably are implemented in externalmemory.

The ADP 214 preferably performs audio PID parsing to extract audiopackets from the compressed data streams. The ADP 214 preferably decodesthe audio packets extracted from the compressed data streams. The ADP214 provides the decoded audio data to the PCM audio 250 for mixing withother audio signals.

The register bus bridge 216 preferably provides an interface between theinternal CPU-register bus and the memory controller 234. In oneembodiment, the system uses 16-bit registers. In other embodiments, thesystem may use registers having other bit sizes.

The graphics accelerator 224 preferably performs graphics operationsthat may require intensive CPU processing, such as operations on threedimensional graphics images. The graphics accelerator 224 preferably isimplemented as a RISC processor optimized for performing real-time 3Dand 2D effects on graphics and video surfaces. The graphics acceleratorpreferably incorporates specialized graphics vector arithmetic functionsfor maximum performance with video and real-time graphics. The graphicsaccelerator preferably performs a range of essential graphics and videooperations with performance approaching that of hardwired approaches. Atthe same time, the graphics accelerator may be programmable so that itmay meet new and evolving application requirements with firmwaredownloads in the field.

The DMA engine 226 preferably transfers data between the CPU andcomponents of the system without interrupting the CPU. For example, CPUread and write operations as illustrated in CPU R/W block 218 areperformed by the DMA engine 226.

The memory controller 234 preferably reads and writes video and graphicsdata to and from memory by using burst accesses with burst lengths thatmay be assigned to each task. The memory preferably is any suitablememory such as an SDRAM. All functions within the system preferablyshare the same memory having a unified memory architecture (UMA), withreal-time performance of all of the hard real time functions. CPUaccesses of code and data preferably are performed as quickly andefficiently as possible without impairing the video, graphics, and audiofunctions. Memory preferably is utilized very efficiently by performingburst accesses with burst lengths optimized for each task, and throughcareful optimization of the memory access patterns for MPEG videodecoding.

The analog video decoder (VDEC) 236 preferably digitizes and processesanalog input video to generate YUV component signals having separatedluma and chroma components. The VDEC 236 preferably includes a 10-bitCMOS video analog-to-digital converter (ADC) to digitize analog videodirectly. The VDEC 236 may also include internal anti-aliasing filterswhich allow simple connections of normal analog video to the system. TheVDEC 236 preferably separates luma and chroma using an adaptive 2H (3line) comb filter, adaptive edge enhancement and noise coring.

The video-graphics display and scale engine 238 preferably takesgraphics information from memory, blends the graphics information, andcomposites the blended graphics with video. The video-graphics displayand scale engine preferably performs display sample rate conversion ofthe blended graphics so as to facilitate blending of graphics and video,while maintaining square aspect ratio of the graphics pixels.

The video-graphics display and scale engine 238 preferably supportscapturing of video as illustrated in a capture block 220 and preferablyreads graphics from the external memory, e.g., SDRAM, as illustrated ina graphics read block 222. Decoded MPEG video preferably is provided tothe video-graphics display and scale engine as indicated in MPEG displayfeeder blocks 1 and 2 228, 230. The video-graphics display and scaleengine preferably also receives a video window 232.

The video-graphics display and scale engine 238 preferably also performsboth downscaling and upscaling of MPEG video and analog video as needed.The scale factors may be adjusted continuously from a scale factor ofmuch less than one to a scale factor of four or more. With both analogand MPEG video input, either one may be scaled while the other isdisplayed full size at the same time. Any portion of the input may bethe source for video scaling. To conserve memory and bandwidth, thevideo-graphics display and scale engine preferably downscales beforecapturing video frames to memory, and upscales after reading frommemory. The video-graphics display and scale engine may scale both theHDTV video and the SDTV video.

In one embodiment, the video-graphics display and scale engine 238provides HDTV video to be displayed while scaling the HDTV video down toSDTV format, and capturing into memory. The HDTV video may be scaled andcaptured as an SDTV video either before or after compositing withgraphics. The HDTV video may also be scaled and captured as an SDTVvideo both before and after compositing with graphics. The scaled andcaptured HDTV video may be recorded, e.g., using a standard videocassette recorder (VCR), while the HDTV video is being displayed ontelevision.

The video-graphics display and scale engine 238 preferably provides thecomponent video, e.g., RGB, YPrPb and YCrCb, to the set of video DACs240 for digital-to-analog conversion. In one embodiment, the set ofvideo DACs 240 includes five DACs. The video-graphics display and scaleengine 238 preferably provides the composite video, e.g., NTSC, PAL, Y/Cvideo (S-video), to the VEC 254 for conversion into proper signalformat. The VEC 254 preferably provides the formatted composite video tothe set of video DACs 240 to be converted to analog format. In anotherembodiment, the VEC 254 includes a set of video DACs, and thus theformatted composite video is converted to analog video in the VEC 254.

The set of video DACs 240 preferably provide multiple digitized videooutputs. The digitized video outputs may include component video such asRGB and YPrPb, in addition to composite video in various formats such ascomposite video blanking and sync (CVBS) including NTSC and PALcomposite video, and Y/C video (S-video). In one embodiment, the set ofvideo DACs 240 includes five video DACs, and thus all of Y/C video, CVBSvideo and standard definition component video may be displayedsimultaneously.

A system bridge controller 248 preferably provides a “north bridge”function by providing a bridge for the CPU to interface with multipleperipheral devices. The system bridge controller preferably is comprisedof the PCI (Peripheral Component Interconnect) bridge 242, the I/O busbridge with DMA 244 and the CPU interface block 246.

The PCM audio 250 preferably receives decoded MPEG or Dolby AC-3 audiofrom the ADP 214. The PCM audio 250 preferably also receives I²S audiothrough an I²S input 262 and digitizes and captures it for mixing withother audio data. The PCM audio 250 preferably supports applicationsthat create and play audio locally within a set top box and allow mixingof the locally created audio with audio from a digital audio source,such as the MPEG audio or Dolby AC-3, and with digitized analog audio.

The PCM audio 250 preferably plays audio from an SDRAM in a variety ofsample rates and formats. Both the captured analog audio and the localPCM audio may be played and mixed at the same time, even though they mayhave different sample rates and formats. The PCM audio 250 preferablyalso provides digital audio output 276 in, e.g., SPDIF serial outputformat.

The audio DAC 252 provides the decoded and digital-to-analog convertedMPEG and Dolby AC-3 audio component as an analog audio output 274 of thesystem. The analog audio output 274 may also include other audioinformation such as I²S audio.

The VEC 254 converts between the HD video color space (YPrPb) and thestandard definition YUV color space, and between either of those and RGBbefore converting to the respective outputs. For example, video that wasoriginally coded using YPrPb may be displayed in YPrPb for direct HDoutput, or converted to YUV for SD display via composite, Y/C or directRGB output. This function preferably is available regardless of theresolution of the video. Video that was originally coded using YUV maybe output as composite, Y/C or RGB, or converted to YPrPb for direct HDoutput.

The HD YPrPb component output may support the specified tri-level sync.The RGB output may also support optional sync on green, sync on RGB, orseparate H and V sync on 2 Y/CVBS and C outputs, to support varioustypes of standard definition and HD monitors.

FIG. 3 is a block diagram of the video-graphics display and scalingengine 238 in one embodiment of the present invention. Thevideo-graphics display and scaling engine includes a display engine 300,a sample rate converter (SRC) 302 and a video compositor 304. Thevideo-graphics display and scaling engine may also include othercomponents (not shown) for processing video and graphics. In otherembodiments, the SRC may be included in the display engine.

The video-graphics display and scaling engine 238 preferably receivesvideo signals 306 and graphics signals 308, and composites them toprovide a video output 314. The video signals 306 preferably includesone or more MPEG display feeds and video windows, and may include eitheror both an HDTV video and an SDTV video. The graphics signals 308 mayinclude graphics windows having various different formats such as YUVand RGB formats.

The display engine 300 preferably blends the graphics windows includedin the graphics signals 308 to generate blended graphics 310. The SRC302 preferably performs display sample rate conversion of the blendedgraphics to generate square graphics pixels 312. The video compositor304 preferably composites the square graphics pixels 312 together withthe video signals 306.

Any conventional or non-conventional display engine may be used as thedisplay engine 300 for blending, filtering and scaling graphics. Forexample, one embodiment of the present invention incorporates thedisplay engine used in one embodiment of the invention described incommonly owned U.S. patent application Ser. No. 09/641,374 filed Aug.18, 2000 and entitled “Video, Audio and Graphics Decode, Composite andDisplay System,” the contents of have been incorporated by reference.

The display engine 300 preferably provides the blended graphics 310having an image size of 640×480 pixels and a display sample rate of12.27 MHz to the SRC 302. The blended graphics have square graphicspixels that are provided to the SRC 302. The blended graphics 310preferably are in YUV 4:2:2 format. Therefore, the blended graphicspreferably include luma (Y) and chroma (U and V) component signals, andeach graphics image in the blended graphics preferably includes 640×480Y values, 320×480 U values and 320×480 V values. YUV may also bereferred to as YCrCb or any other terminology used by those skilled inthe art to designate video/graphics format having luma and chromacomponents. In other embodiments, the blended graphics 310 may be inother format, such as, for example, YUV 4:4:4 format.

In one embodiment, SRC preferably converts the sample rate of theblended graphics by 11/10 ratio to provide 704 pixels in each displayscan line. In this embodiment, the SRC preferably converts Y, U and Vvalues to 704×480 Y values, 352×480 U values and 352×480 V values. Othersample rate ratios may be used if either or both the video and thegraphics have a different display sample rate. In other embodiments, forexample, the sample rate of the blended graphics may be converted by22/10 ratio to provide 1408 pixels per display scan line. For anotherexample, different sample rate conversion ratios may be used if thevideo includes an HDTV video.

The SRC 302 preferably includes a multi-tap filter for the displaysample rate conversion of all three of the Y, U and V values. For thedisplay sample rate conversion with 11/10 ratio (e.g., down sampling by10 and up sampling by 11), 11 phases, and therefore 11 coefficientspreferably are used per tap. In one embodiment of the present invention,the multi-tap filter preferably has five taps. Therefore, in thisembodiment, 55 coefficients are used to process Y (luma) components. Inother embodiments, the SRC may include a multi-tap filter having adifferent number of taps, e.g., eight taps, and corresponding number ofcoefficients, e.g., 88, may be used. In other embodiments, the SRC mayinclude a separate filter for processing each of the Y, U and Vcomponent signals. The SRC preferably also includes a memory for storingthe filter coefficients. The memory may be a read only memory (ROM) or arandom access memory (RAM).

The filter coefficients preferably are selected to provide a goodbalance of sharpness at the cut-off frequency, smoothness, anti-aliasingand minimum ringing. Design and implementation of multi-tap filters arewell known to those skilled in the art. The 55 filter coefficients forprocessing luma components in the 11-phase, 5-tap filter in oneembodiment of the present invention are provided in Table 1.

TABLE 1 Filter Coefficients to Process Luma Components for a 11-Phase,5-Tap Filter Tap 0 Tap 1 Tap 2 Tap 3 Tap 4 Phase 0 −52 273 348 −68 11Phase 1 −34 195 415 −79 15 Phase 2 −17 122 472 −84 19 Phase 3 −2 58 514−79 21 Phase 4 9 5 540 −63 21 Phase 5 17 −36 550 −36 17 Phase 6 21 −63540 5 9 Phase 7 21 −79 514 58 −2 Phase 8 19 −84 472 122 −17 Phase 9 15−79 415 195 −34 Phase 10 11 −68 348 273 −52

Each filter coefficient in Table 1 may be designated with a parameterc[ph] [t], where ph is the phase that ranges from 0 to 10, and t is thetap number that ranges from 0 to 4. For example, the value of thecoefficient c[0] [0] is equal to −52 according to Table 1. For anotherexample, the value of the coefficient c[6] [2] is equal to 540.

For example, in one embodiment of the present invention, pixel n in eachrow of the pixels that are input to the SRC has a luma value ofy_(i)[n], where n=0, 1, 2, . . . , 703. The phase ph preferably isselected to be (10×n) mod 11, and thus ph ranges from 0 to 10. Thecenter pixel p of the five pixels provided to the five filter tapspreferably is selected to be <(10×n)/11>, where <x> is defined to be thelargest integer less than or equal to x. The center pixel p has a lumavalue of y_(i)[p].

In this embodiment, the resulting Y values, i.e., y_(o)[n]s, for eachscan line are generated using the following equation:

$\begin{matrix}{{y_{o}\lbrack n\rbrack} = {\sum\limits_{i = {p - 2}}^{p + 2}{{{c\lbrack{ph}\rbrack}\left\lbrack {i - \left( {p - 2} \right)} \right\rbrack}{{xy}_{i}\lbrack i\rbrack}}}} & \left( {{Eq}.\mspace{14mu} 1} \right)\end{matrix}$Thus, for example, the Y value y_(o)[300] of the output pixel 300preferably is calculated from input Y values y_(i)[270], y_(i)[271],y_(i)[272], y_(i)[273] and y_(i)[274], where the input pixel 272 is thecenter pixel. For the output pixel 300, for another example, ph equalsto (10×300) mod 11, which is equal to 8.

It is not always possible to have two input values to the left and twoinput values to the right of the center pixel on the same scan line. Forexample, when the pixel 638 is used as the center pixel, the five inputY values to be provided to the 5-tap filter, according to Eq. 1, arey_(i)[636], y_(i)[637], y_(i)[638], y_(i)[639] and y_(i)[640]. However,images having 640×480 pixels have input Y values ranging from y_(i)[0]to y_(i)[639], and y_(i)[640] does not exist. For such cases, the rightboundary input Y value may be duplicated so that all five taps of the5-tap filter may be provided with an input Y value. For example, in thiscase, the input Y values of y_(i)[636], y_(i)[637], y_(i)[638],y_(i)[639] and y_(i)[639] may be provided in which the right boundaryinput Y value of y_(i)[639] is duplicated and used twice. Similarduplication of the boundary input Y value may be used at the leftboundary as well.

FIG. 4 is a diagram illustrating the frequency response of the 5-tapfilter in one embodiment of the present invention. The abscissa is inunits of a half of the sampling frequency. For example, the range of 0to 1.0 on the abscissa corresponds to 0 Hz to 13.5 MHz for the case ofluma component signals for ITU-R 601 compliant video. As can be seenfrom FIG. 4, the 5-tap filter preferably also performs low passfiltering as to reduce aliasing.

Since there are half as many U values and half as many V values as thereare Y values in a YUV 4:2:2 image, in order to perform sample rateconversion using the same filter for all three values, differentcoefficients preferably are used for filtering U values and V values.For example, during the time Y has five input values including y_(i)[0],y_(i)[1], y_(i)[2], y_(i)[3] and y_(i)[4], U may have three input valuesincluding u_(i)[0], u_(i)[2], u_(i)[4], since there is only one value ofU for every two values of Y in an YUV 4:2:2 image. Table 2 illustrates afrequency relationship between Y, U and V components of a YUV 4:2:2image.

TABLE 2 Y, U and V Frequency Relationship for a YUV 4:2:2 Image Yy_(i)[0] y_(i)[1] y_(i)[2] y_(i)[3] y_(i)[4] y_(i)[5] y_(i)[6] y_(i)[7]y_(i)[8] y_(i)[9] U/V u_(i)[0] v_(i)[0] u_(i)[2] v_(i)[2] u_(i)[4]v_(i)[4] u_(i)[6] v_(i)[6] u_(i)[8] v_(i)[8]In other embodiments, there may be more or less number of input U and Vvalues per input Y value. For example, each scan line in a YUV 4:4:4image typically contains an identical number of input U and V values asthe input Y value.

In one embodiment of the present invention, preferably a three tapfilter is used to process input U values and input V values. Thecoefficients to be applied to the input U and V values may be derivedfrom the coefficients for the input Y values, or they may be generatedindependently of the coefficients for the input Y values. For example,coefficients cc[ph] [t] for the input U and V values may be derived fromthe coefficients c[ph] [t] for the input Y values in accordance with thefollowing equations:cc[ph][0]=c[ph][0]+c[ph][1];   (Eq. 2)cc[ph][1]=c[ph][2]; and   (Eq. 3)cc[ph][2]=c[ph][3]+c[ph][4].   (Eq. 4)In equations 2-4, ph is the phase that ranges from 0-10, and therefore,there are 33 coefficients for the U and V input values. In anotherembodiment, different coefficients used for the input U values and theinput V values may be different from one another.

There are twice as many pixels as there are U and V values in each YUV4:2:2 image. Therefore, a parameter m should be designated for eachgroup of two pixels in the graphics image, where m is defined to be<n/2> and m=0, 1, 2, . . . , 351. The phase ph preferably is selected tobe (10×m) mod 11. The center pixel q of the input pixels for filteringpreferably is defined to be <(10×m)/11>. The U and V component signalspreferably are filtered in accordance with the following equations:u _(o) [m]=cc[ph][0]×u _(i) [q−2]+cc[ph][1]×u _(i) [q]+cc[ph][2]×u _(i)[q+2]; and   (Eq. 5)v _(o) [m]=cc[ph][0]×v _(i) [q−2]+cc[ph][1]×v _(i) [q]+cc[ph][2]×v _(i)[q+2].   (Eq. 6)

In other embodiments, a 5-tap filter, similar to the filter for the Ysamples, may be used to filter the input U and V values. In theseembodiments, the same or different coefficients may be applied to theinput Y, U and V values. In order to use the 5-tap filter to processthree input U values, additional values preferably are generated fromexisting values. For example, two of the three input U values may beduplicated and five values may be provided as u_(i)[0], u_(i)[0],u_(i)[1], u_(i)[1] and u_(i)[2] or other similar sequence of U values.The in-between input U values may also be generated using other methods.For example, u_(i)[0], (u_(i)[0]+u_(i)[1])/2, u_(i)[1],(u_(i)[1]+u_(i)[2])/2, u_(i)[2] may be used as the five input U values.Similarly, some input V values may be duplicated or in-between input Vvalues may be generated in order to provide five input V values to the5-tap filter concurrently with five input Y values.

In one embodiment of the present invention, images having a size 320×480may be expanded to have a size of 704×480. The same 5-tap filter may beused for display sample rate conversion to generate output pixels forthis embodiment. In this embodiment, since the images are to be scaledup by an 11/5 ratio, (e.g., down sampling by 5 and up sampling by 11)the phase ph preferably is selected to be (5×n) mod 11. All otheraspects of the filtering algorithm preferably is similar to theforegoing embodiments for display sample rate conversion by 11/10 ratio.

As described above, one embodiment of the present invention provides avideo and graphics system for HDTV and SDTV applications with acapability for displaying a combination of video and graphics where thevideo has non-square aspect ratio pixels, and the graphics content hassquare aspect ratio pixels.

Although this invention has been described in certain specificembodiments, many additional modifications and variations would beapparent to those skilled in the art. It is therefore to be understoodthat this invention may be practiced otherwise than as specificallydescribed. Thus, the present embodiments of the invention should beconsidered in all respects as illustrative and not restrictive, thescope of the invention to be determined by the appended claims and theirequivalents.

For example, the present invention may be applied to any system thatuses sample rate conversion. For example, the present invention may beused for display sample rate conversion of graphics or other images togenerate square aspect ratio pixels for applications in a 1080i-formatHDTV with 1920×1080 pixels. For this application, Y, Pr and Pb componentsignals may be processed in a similar manner as the processing of Y, Uand V (Y, Cr, Cb) component signals in the foregoing description. Thepresent invention may also be used for a display sample rate conversionto generate display pixels for applications in HDTVs having progressiveformats such as 720p and 1080p.

1. A video and graphics system comprising: a first input for receiving agraphics image comprising graphics pixels, the graphics pixels havingsquare pixel aspect ratio; a second input for receiving a video imagecomprising video pixels, the video pixels having non-square pixel aspectratio, the video image having a larger number of pixels per scan linethan the graphics image; a sample rate converter for converting samplerate of the graphics image so that the number of graphics pixels perscan line of the graphics image becomes greater than or equal to thenumber of video pixels per scan line of the video image; and a videocompositor for blending the graphics image with the video image, whereinthe graphics image is scaled horizontally so that the graphics image canbe overlaid on the full width of the video image, and the square pixelaspect ratio of the graphics pixels is maintained.
 2. The video andgraphics system of claim 1, wherein the sample reate converter includesa multi-tap filter for converting the sample rat of the graphics image.3. The video and graphics system of claim 2 wherein the sample rateconverter includes a memory for storing filter coefficients of themulti-tap filter.
 4. The video and graphics system of claim 2 whereinthe sample rate converter includes a memory for storing filtercoefficients of the multi-tap filter.
 5. The video and graphics systemof claim 2 wherein the graphics image includes luma and chromacomponents, and the multi-tap filter is used to converter the samplerate for the luma and chroma components.
 6. The video and graphicssystem of claim 4 wherein filter coefficients of the multi-tap filterare defined for converting the luma component, and wherein filtercoefficients for the chroma components are derived from the filtercoefficients for the luma component.
 7. The video and graphics system ofclaim 2 wherein the graphics image includes luma and chroma components,and the multi-tap filter is used to convert the sample rate of the lumacomponent, and wherein the vdeo and graphics system further comprisesone or more other multi-tap filters for converting the sample rate ofthe chroma components.
 8. The video and graphics system of claim 1,wherein the graphics image has a first image aspect ration and a firstsample rate, and the video image has a second image aspect ratio and asecond sample rate, and wherein the image aspect ration of the graphicsimage is changed to a third image aspect ratio when the sample ate ofthe graphics image is converted from the first sample rate to the secondsample rate.
 9. The video and graphics system of claim 7 wherein aconversion ratio for converting from the first sample rate to the secondsample rate is 11/10.
 10. The video and graphics system of claim 7wherein a conversion ratio for converting from the first sample rate tothe second sample rate is 11/5.
 11. The video and graphics system ofclaim 1 wherein the video image includes an HDTV video image, and thesample rate of graphics image is converted to the sample rate of theHDTV video image.